<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>mxxWechatBot</title>
    <link rel="icon" href="_media/favicon.ico" />
    <meta
      name="google-site-verification"
      content="6t0LoIeFksrjF4c9sqUEsVXiQNxLp2hgoqo0KryT-sE"
    />
    <meta
      name="keywords"
      content="doc,docs,documentation,gitbook,creator,generator,github,jekyll,github-pages,mxxWechatBot"
    />
    <meta name="description" content="A magical documentation generator." />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0"
    />


    <link
      rel="stylesheet"
      href="./themes/vue.css"
      title="vue"
    />

    <style>
      nav.app-nav li ul {
        min-width: 100px;
      }

      #carbonads {
        box-shadow: none !important;
        width: auto !important;
      }
    </style>
    <script>
      (function () {
        const lang = location.hash.match(/#\/(de-de|es|ru-ru|zh-cn)\//);
       console.log(location);
        // Set html "lang" attribute based on URL
        if (lang) {
          document.documentElement.setAttribute('lang', lang[1]);
        }
      })();
    </script>
  </head>

  <body>
    <div id="app">稍等稍等，正在加载中 ...</div>
    <!--<script src="//cdn.jsdelivr.net/npm/docsify-plugin-carbon@1"></script>-->
    <script>
      // 配置项
      window.$docsify = {
        //仓库地址
        repo: 'http://wechat.88688.team/',

        /*这个地方的逻辑是：点击快捷导航时，根据选择的语言类型更换内容*/
        alias: {
          '/.*/_navbar.md': '/_navbar.md',
          '/es/(.*)':
            '/_sidebar.md',
          '/de-de/(.*)':
            '/_sidebar.md',
          '/ru-ru/(.*)':
            '/_sidebar.md',
          '/zh-cn/(.*)':
            '/_sidebar.md',
        },
        auto2top: true,
        coverpage: true,
        executeScript: true,
        loadSidebar: true,
        //导航栏
        loadNavbar: false,
        mergeNavbar: true,
        //这个选项用来完全隐藏侧边栏，侧边栏的任何内容都不会被渲染。
        hideSidebar:false,
        maxLevel: 4,
        subMaxLevel: 2,
        ga: 'UA-106147152-1',
        matomo: {
          host: '//matomo.thunderwave.de',
          id: 6,
        },
        name: 'mxxWechatBot说明文档',
        //点击文档标题后跳转的链接地址。
        nameLink: {
          '/': '#/',
        },
        search: {
          noData: {
            '/': '没有结果!'
          },
          paths: 'auto',
          placeholder: {
            '/': '搜索'
          },
          pathNamespaces: ['/'],
        },
        skipLink: {
          '/': '跳到主要内容',
        },
        vueComponents: {
          'button-counter': {
            template: /* html */ `<button @click="count += 1">You clicked me {{ count }} times</button>`,
            data() {
              return {
                count: 0,
              };
            },
          },
        },
        vueGlobalOptions: {
          data() {
            return {
              count: 0,
              message: 'Hello, World!',
              // Fake API response
              images: [
                { title: 'Image 1', url: 'https://picsum.photos/150?random=1' },
                { title: 'Image 2', url: 'https://picsum.photos/150?random=2' },
                { title: 'Image 3', url: 'https://picsum.photos/150?random=3' },
              ],
            };
          },
          computed: {
            timeOfDay() {
              const date = new Date();
              const hours = date.getHours();

              if (hours < 12) {
                return 'morning';
              } else if (hours < 18) {
                return 'afternoon';
              } else {
                return 'evening';
              }
            },
          },
          methods: {
            hello() {
              alert(this.message);
            },
          },
        },
        vueMounts: {
          '#counter': {
            data() {
              return {
                count: 0,
              };
            },
          },
        },
        plugins: [
          function () {
            DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg');
          },
          function (hook, vm) {
            hook.beforeEach(html => {
              if (/githubusercontent\.com/.test(vm.route.file)) {
                url = vm.route.file
                  .replace('raw.githubusercontent.com', 'github.com')
                  .replace(/\/master/, '/blob/master');
              } else if (/jsdelivr\.net/.test(vm.route.file)) {
                url = vm.route.file
                  .replace('cdn.jsdelivr.net/gh', 'github.com')
                  .replace('@master', '/blob/master');
              } else {
                url =
                  'https://github.com/docsifyjs/docsify/blob/develop/docs/' +
                  vm.route.file;
              }
             /*  const editHtml = '[:memo: Edit Document](' + url + ')\n';
              return (
                editHtml +
                html +
                '\n\n----\n\n' +
                '<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
              ); */
            });
          },
        ],
      };
    </script>
    <script src="./plugins/docsify.js"></script>
    <script src="./plugins/search.js"></script>
    <script src="./plugins/ga.js"></script>
    <script src="./plugins/matomo.js"></script>
    <script src="./plugins/prism-bash.js"></script>
    <script src="./plugins/prism-markdown.js"></script>
    <script src="./plugins/prism-nginx.js"></script>
    <script src="./plugins/prism-php.js"></script>
    <script src="./plugins/vue.js"></script>
    <!--复制到剪贴板-->
    <script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
    <!-- <script src="//cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script> -->
  </body>
</html>
